package com.tjtt.gwm.service.impl;
import java.util.List;
import java.util.Map;

import com.tjtt.gwm.bean.SheBeiWeiBaoXiangMuKu;
import com.tjtt.gwm.dao.SheBeiWeiBaoXiangMuKuDao;
import com.tjtt.gwm.service.*;
import com.tjtt.tdm.base.PageResult;

public class SheBeiWeiBaoXiangMuKuServiceImpl implements SheBeiWeiBaoXiangMuKuService{
	private SheBeiWeiBaoXiangMuKuDao wbxmDao;
	
	public SheBeiWeiBaoXiangMuKuDao getWbxmDao() {
		return wbxmDao;
	}
	public void setWbxmDao(SheBeiWeiBaoXiangMuKuDao wbxmDao) {
		this.wbxmDao = wbxmDao;
	}
	//新增设备维保项目
	public void addWeiBaoXiangMu(SheBeiWeiBaoXiangMuKu wbxm){
		wbxmDao.addWeiBaoXiangMu(wbxm);
	}
	//删除设备维保项目
	public void deleteWeiBaoXiangMu(SheBeiWeiBaoXiangMuKu wbxm){
		wbxmDao.deleteWeiBaoXiangMu(wbxm);
	}
	//修改设备维保项目
	public void updateWeiBaoXiangMu(SheBeiWeiBaoXiangMuKu wbxm){
		wbxmDao.updateWeiBaoXiangMu(wbxm);
	}
	
	//根据id查询维保项目具体信息
	public SheBeiWeiBaoXiangMuKu queryWeiBaoXiangMuById(String id ){
		return wbxmDao.queryWeiBaoXiangMuById(id);
	}
	//根据设备名称查询维保项目
	public PageResult queryWeiBaoXiangListBySheBei(Map filterMap){
		return wbxmDao.queryWeiBaoXiangListBySheBei(filterMap);
	}
	// 根据sql语句查询数据
	public List queryDataBySql(String sql){
		return wbxmDao.queryDataBySql(sql);
	}
	//判断设备名称是否存在，避免重复添加
	public boolean isExistEP(String epName){
		return wbxmDao.isExistEP(epName);
	}
	//选择除设备名称为空的检测项目数据
	public List queryWbxmByNull(String epName){
		return wbxmDao.queryWbxmByNull(epName);
	}

}
